import request from '@/utils/request'

// 查询角色列表
export function findBrandList(name,pageNum,pageSize) {
  return request({
    url: '/product/brand/findBrandList?name='+name+'&pageNum='+pageNum+'&pageSize='+pageSize,
    method: 'get'
  })
}

export function delect(id) {
  return request({
    url: '/product/brand/delect?id='+id,
    method: 'post',
    data:id
  })
}


export function add(data) {
  return request({
    url: '/product/brand/add',
    method: 'post',
    data
  })
}


export function update(data) {
  return request({
    url: '/product/brand/update',
    method: 'post',
    data
  })
}
export function updateFactoryStatus(id,factoryStatus) {
  return request({
    url: '/product/brand/updateFactoryStatus?id='+id+'&factoryStatus='+factoryStatus,
    method: 'get'
  })
}

export function updateShowStatus(id,showStatus) {
  return request({
    url: '/product/brand/updateShowStatus?id='+id+'&showStatus='+showStatus,
    method: 'get'
  })
}


export function findALlBrand(data) {
  return request({
    url: '/product/brand/findALlBrand',
    method: 'get',
    data
  })
}
